package leetcode;

public class Main6 {


    public String solution(String num10, String num20) {
        int ans = 0;

        // arr1 2 3 4 6
        // arr2       3
        //       1 8


        char[] arr1 = num10.toCharArray();
        char[] arr2 = num20.toCharArray();

        for (int i = 0; i < arr2.length; i++) {

            int num2 = arr2[i];

            int innerAns = 0;

            int beyond = 0;
            int y = 1;

            for (int j = arr1.length; j >= 0; j--) {

                int temp = num2 * arr1[j] + beyond;
                innerAns = temp * y + innerAns * (y / 10);

                beyond = temp % 10;
                y = y * 10;
            }
            System.out.println("innerAns " + innerAns);

            ans += innerAns;
        }


        return "";


    }
}
